<?php
class sales_finder_extend_filter_sales{
    function get_extend_colums(){
        $db['sales']=array (
            'columns' => array (
            'order_bn' =>array (
                    'type' => 'varchar(32)',
                    'filtertype' => 'normal',
                    'filterdefault' => true,
                    'default_in_list'=>true,
                    'in_list'=>true,
                    'label' => '订单号',
                    'comment' => '订单号',
            ),
             'branch_name' =>array (
                    'type' => 'table:branch@ome',
                    'filtertype' => 'normal',
                    'filterdefault' => true,
                    'default_in_list'=>true,
                    'seachertype'=>'has',
                    'in_list'=>true,
                    'label' => '仓库名称',
                    'comment' => '仓库名称',
            ),
             'name' =>array (//店铺名称
                    'type' => 'table:shop@ome',
                    'filtertype' => 'normal',
                    'filterdefault' => true,
                    'default_in_list'=>true,
                    'in_list'=>true,
                    'label' => '店铺名称',
                    'comment' => '店铺名称',
            ),
             'original_bn' =>array (//原始单据号
                    'type' => 'varchar(32)',
                    'filtertype' => 'normal',
                    'filterdefault' => true,
                    'default_in_list'=>true,
                    'in_list'=>true,
                    'label' => '发货单号',
                    'comment' => '发货单号',
            ),
             'bn' =>array (
                    'type' => 'varchar(32)',
                   
                    'filtertype' => 'normal',
                    'filterdefault' => true,
                    'default_in_list'=>true,
                    'in_list'=>true,
                    'label' => '货号',
                    'comment' => '货号',
            ),
            'product_name' =>array (
                    'type' => 'varchar(32)',
                    
                    'filtertype' => 'normal',
                    'filterdefault' => true,
                    'default_in_list'=>true,
                    'in_list'=>true,
                    'label' => '货品名称',
                    'comment' => '货品名称',
            ),

             'type_id' =>array (
                    'type' => array (
                            3 => '销售出库',
                            30 => '退货入库',
                            31 => '换货入库',
                          ),
                   
                    'filtertype' => 'normal',
                    'filterdefault' => true,
                    'default_in_list'=>true,
                    'in_list'=>true,
                    'label' => '销售类型',
                    'comment' => '销售类型',
            ),
                
            )
        );
        return $db;
    }
}